import request from '@/utils/request'

/**
 * 登录接口
 * @param {"username":"2020002","password":"111111"} data
 */
export function login(data) {
  return request({
    method: 'post',
    url: '/login',
    data
  })
}

/**
 * 登出接口
 */
export function logout() {
  return request({
    method: 'get',
    url: '/logout'
  })
}
